package com.edu.chat.web.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @program: KQAIA
 * @description:
 * @author: 无恙
 * @create: 2025-04-06 10:52
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DocumentDTO {

	private Long id;

	private Long libraryId;

	private String content;

	/**
	 * 文件ID
	 */
	private Long fileId;

	/**
	 * 文档元数据
	 */
	private MetaDataDTO metadata;

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	public static class MetaDataDTO {

		private String title;

		//总页数
		private Integer pageSize;

		//当前页码
		private Integer index;
	}
}
